package com.zdb.order.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;


import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ListQuery {
    public int page;            //当前页数
    public int limit;           //分页大小
    public String sort;         //排序规则

    public String id;           //id
    public String qq;           //qq
    public String tel;          //电话号码

    public String name;          //姓名
    public String workStatus;   //状态
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public List<Date> date;           //日期

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWorkStatus() {
        return workStatus;
    }

    public void setWorkStatus(String workStatus) {
        this.workStatus = workStatus;
    }

    public List<Date> getDate() {
        return date;
    }

    public void setDate(List<Date> date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "ListQuery{" +
                "page=" + page +
                ", limit=" + limit +
                ", sort='" + sort + '\'' +
                ", id='" + id + '\'' +
                ", qq='" + qq + '\'' +
                ", tel='" + tel + '\'' +
                ", name='" + name + '\'' +
                ", workStatus='" + workStatus + '\'' +
                ", date=" + date +
                '}';
    }
}
